﻿using System;

namespace MikadoShooter
{
    public class TargetAction
    {
        public Func<Vector4Target> GetTargets { get; private set; }
        public Func<bool> SetMissTarget { get; private set; }
        public Func<int[],bool> RemoveTarget { get; private set; }

        public TargetAction(Func<Vector4Target> getTargets, Func<bool> setMissTarget, Func<int[], bool> removeTarget)
        {
            if (getTargets == null || setMissTarget == null || removeTarget == null)
                throw new NullReferenceException("TargetAction null");

            GetTargets = getTargets;
            SetMissTarget = setMissTarget;
            RemoveTarget = removeTarget;
        }
    }
}